﻿<UserControl x:Class="ICIA.ARojas.Silverlight.Shell.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sr="clr-namespace:Divelements.SandRibbon;assembly=Divelements.SandRibbon"
    xmlns:System_Windows_Controls="clr-namespace:System.Windows.Controls;assembly=Didsoft.Silverlight.Forms"
    mc:Ignorable="d">

    <Grid x:Name="LayoutRoot" MinWidth="600" MinHeight="400" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*" MinHeight="200"/>
            <RowDefinition Height="25"/>

        </Grid.RowDefinitions>
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="Black" Offset="0"/>
                <GradientStop Color="#FFC0E6FF" Offset="1"/>
                <GradientStop Color="#FF79A0B8"/>
            </LinearGradientBrush>
        </Grid.Background>

        <sr:Ribbon ApplicationName="" Name="ribbon1" Title="INTELIGENCIA - EJERCITO" IsEnabled="True" ShowHelp="False" ToolBarPosition="BelowRibbon" Height="147" ApplicationButtonImage="/CSISWMD.Visual.Shell;component/Images/User.png" Margin="0,0,0,0">
            <sr:Ribbon.ApplicationPopup>
                <sr:ApplicationPopup>
                    <sr:MenuItem Text="Session" Name="amisesion" />
                    <sr:MenuItem Text="Historial" Name="ahistorialsesion" />
                    <sr:Separator></sr:Separator>
                    <sr:MenuItem Text="Ir a algun lado" Name="menu1" />
                    <sr:MenuItem Text="Ir a algun otro lado " Name="menu2" />
                    <sr:Separator></sr:Separator>
                    <sr:MenuItem Text="Cerrar esta Session" Name="acerrarsesion" />
                </sr:ApplicationPopup>
            </sr:Ribbon.ApplicationPopup>
            <sr:RibbonTab Text="Administracion" Name="tabAdministrador">
                <sr:RibbonGroup Header="Aministracion" x:Name="groupAdministrador">
                    <sr:GalleryButton Text="Administrar Curso" Name="btnAdminCurso" LargeImage="Images/Entity.png" Size="Large" />
                    <sr:GalleryButton Text="Administrar ESpecialidad" Name="btnAdminEspecialidad" LargeImage="Images/Entity.png" Size="Large" />
                    <sr:GalleryButton Text="Administrar Grado" Name="btnAdminGrado" LargeImage="Images/Entity.png" Size="Large" />
                    <sr:GalleryButton Text="Administra Persona" Name="btnAdminPersona" LargeImage="Images/Entity.png" Size="Large" />
                    <sr:GalleryButton Text="Administra TipoDestino" Name="btnAdminTipoDestino" LargeImage="Images/ok.1.png" Size="Large" />
                    <sr:GalleryButton Text="Destinos" Name="btnDestino" LargeImage="Images/ok.1.png" Size="Large" />
                    
                    <sr:GalleryButton Text="Usuarios" Name="btnUsuario" LargeImage="Images/ok.1.png" Size="Large" />
                    <sr:GalleryButton Text="Cargos" Name="btnCargo" LargeImage="Images/ok.1.png" Size="Large" />
                    
                    <!--<sr:GalleryButton Text="Administra Logs de Accesos" Name="btnLogsAccesos" LargeImage="Images/ok.1.png" Size="Large" />-->

                </sr:RibbonGroup>
            </sr:RibbonTab>
           
           
        </sr:Ribbon>

        <System_Windows_Controls:WindowsContainer x:Name="container"  FontSize="10" Grid.Row="1" d:LayoutOverrides="GridBox" />
        <StackPanel Orientation="Horizontal" x:Name="spnStatusBar" Grid.Row="3" VerticalAlignment="Bottom" Height="25" d:LayoutOverrides="VerticalAlignment" Margin="0,0,0,-1.25">
            <StackPanel.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFFFFFFF"/>
                    <GradientStop Color="#FFFFFFFF" Offset="1"/>
                    <GradientStop Color="#FFC5C7CD" Offset="0.113"/>
                </LinearGradientBrush>
            </StackPanel.Background>
            <TextBlock Text="|" x:Name="lblLabelSpacer"  HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5,0,0,0"/>
            <TextBlock Text="Usuario: " HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="lblLabelUser" Margin="0,0,0,0" />
            <TextBlock Text="{Binding CuentaUsuario.Persona}" Margin="5,0,5,0" HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="lblUser" Width="200" />

        </StackPanel>
    </Grid>
</UserControl>
